home *** CD-ROM | disk | FTP | other *** search
/ Programming Languages Suite / ProgramD2.iso / Borland / Borland C++ V5.02 / APXMDI.PAK / APXMDAPP.RC < prev    next >
Encoding:
Text File  |  1997-05-06  |  12.9 KB  |  424 lines

  1. //----------------------------------------------------------------------------
  2. //  Project ApxMdi
  3. //  Borland International
  4. //  Copyright ⌐ 1996. All Rights Reserved.
  5. //
  6. //  SUBSYSTEM:  ApxMdi Application
  7. //  FILE:     apxmdapp.rc
  8. //  AUTHOR:
  9. //
  10. //  OVERVIEW
  11. //  ~~~~~~~~
  12. //  All resources defined here.
  13. //
  14. //----------------------------------------------------------------------------
  15.  
  16. #if !defined(WORKSHOP_INVOKED)
  17. # include <windows.h>
  18. #endif
  19. #include "apxmdapp.rh"
  20.  
  21.  
  22. IDM_MDI MENU
  23. BEGIN
  24.   POPUP "&File"
  25.   BEGIN
  26.     MENUITEM "&New", CM_MDIFILENEW
  27.     MENUITEM "&Open...", CM_MDIFILEOPEN
  28.     MENUITEM "&Close", CM_FILECLOSE
  29.     MENUITEM SEPARATOR
  30.     MENUITEM "&Save", CM_FILESAVE, GRAYED
  31.     MENUITEM "Save &As...", CM_FILESAVEAS, GRAYED
  32.     MENUITEM SEPARATOR
  33.     MENUITEM "Print Pre&view...", CM_FILEPRINTPREVIEW, GRAYED
  34.     MENUITEM "&Print...", CM_FILEPRINT, GRAYED
  35.     MENUITEM "P&rint Setup...", CM_FILEPRINTERSETUP, GRAYED
  36.     MENUITEM SEPARATOR
  37.     MENUITEM "E&xit\tAlt+F4", CM_EXIT
  38.   END
  39.  
  40.   MENUITEM SEPARATOR
  41.  
  42.   POPUP "&Edit"
  43.   BEGIN
  44.     MENUITEM "&Undo\tAlt+BkSp", CM_EDITUNDO, GRAYED
  45.     MENUITEM SEPARATOR
  46.     MENUITEM "Cu&t\tShift+Del", CM_EDITCUT, GRAYED
  47.     MENUITEM "&Copy\tCtrl+Ins", CM_EDITCOPY, GRAYED
  48.     MENUITEM "&Paste\tShift+Ins", CM_EDITPASTE, GRAYED
  49.     MENUITEM SEPARATOR
  50.     MENUITEM "Clear &All\tCtrl+Del", CM_EDITCLEAR, GRAYED
  51.     MENUITEM "&Delete\tDel", CM_EDITDELETE, GRAYED
  52.   END
  53.  
  54.   POPUP "&Search"
  55.   BEGIN
  56.     MENUITEM "&Find...", CM_EDITFIND, GRAYED
  57.     MENUITEM "&Replace...", CM_EDITREPLACE, GRAYED
  58.     MENUITEM "&Next\aF3", CM_EDITFINDNEXT, GRAYED
  59.   END
  60.  
  61.   MENUITEM SEPARATOR
  62.  
  63.   MENUITEM SEPARATOR
  64.  
  65.   MENUITEM SEPARATOR
  66.  
  67.   POPUP "&Window"
  68.   BEGIN
  69.     MENUITEM "&Cascade", CM_CASCADECHILDREN
  70.     MENUITEM "&Tile", CM_TILECHILDREN
  71.     MENUITEM "Arrange &Icons", CM_ARRANGEICONS
  72.     MENUITEM "C&lose All", CM_CLOSECHILDREN
  73.   END
  74.  
  75.   MENUITEM SEPARATOR
  76.  
  77.   POPUP "&Help"
  78.   BEGIN
  79.     MENUITEM "&About...", CM_HELPABOUT
  80.   END
  81.  
  82. END
  83.  
  84.  
  85. // Accelerator table for short-cut to menu commands. (include/owl/editfile.rc)
  86. //
  87. IDM_MDI ACCELERATORS
  88. BEGIN
  89.   VK_DELETE, CM_EDITCUT, VIRTKEY, SHIFT
  90.   VK_INSERT, CM_EDITCOPY, VIRTKEY, CONTROL
  91.   VK_INSERT, CM_EDITPASTE, VIRTKEY, SHIFT
  92.   VK_DELETE, CM_EDITCLEAR, VIRTKEY, CONTROL
  93.   VK_BACK,   CM_EDITUNDO, VIRTKEY, ALT
  94.   VK_F3,     CM_EDITFINDNEXT, VIRTKEY
  95. END
  96.  
  97.  
  98. // Accelerator table for Print Preview window.
  99. //
  100. IDM_PRINTPREVIEW ACCELERATORS
  101. BEGIN
  102.   VK_ESCAPE, APX_PPR_DONE, VIRTKEY
  103.   "c",       APX_PPR_DONE, ALT
  104. END
  105.  
  106.  
  107.  
  108. // Table of help hints displayed in the status bar.
  109. //
  110. STRINGTABLE
  111. BEGIN
  112.   -1,                   "File/document operations"
  113.   CM_MDIFILENEW,        "Creates a new document"
  114.   CM_MDIFILEOPEN,       "Opens an existing document"
  115.   CM_FILECLOSE,         "Closes the active document"
  116.   CM_FILESAVE,          "Saves the active document"
  117.   CM_FILESAVEAS,        "Saves the active document with a new name"
  118.   CM_FILEPRINT,         "Prints the active document"
  119.   CM_FILEPRINTERSETUP,  "Sets print characteristics for the active document"
  120.   CM_FILEPRINTPREVIEW,  "Displays full pages as read-only"
  121.   CM_EXIT,              "Quits ApxMdi and prompts to save the documents"
  122.   CM_EDITUNDO-1,        "Edit operations"
  123.   CM_EDITUNDO,          "Reverses the last operation"
  124.   CM_EDITCUT,           "Cuts the selection and puts it on the Clipboard"
  125.   CM_EDITCOPY,          "Copies the selection and puts it on the Clipboard"
  126.   CM_EDITPASTE,         "Inserts the Clipboard contents at the insertion point"
  127.   CM_EDITDELETE,        "Deletes the selection"
  128.   CM_EDITCLEAR,         "Clears the active document"
  129.   CM_EDITADD,           "Inserts a new line"
  130.   CM_EDITEDIT,          "Edits the current line"
  131.   CM_EDITFIND-1,        "Search/replace operations"
  132.   CM_EDITFIND,          "Finds the specified text"
  133.   CM_EDITREPLACE,       "Finds the specified text and changes it"
  134.   CM_EDITFINDNEXT,      "Finds the next match"
  135.   CM_CASCADECHILDREN-1, "Window arrangement and selection"
  136.   CM_CASCADECHILDREN,   "Cascades open windows"
  137.   CM_TILECHILDREN,      "Tiles open windows"
  138.   CM_ARRANGEICONS,      "Arranges iconic windows along bottom"
  139.   CM_CLOSECHILDREN,     "Closes all open windows"
  140.   CM_HELPABOUT-1,       "Access About"
  141.   CM_HELPABOUT,         "About the ApxMdi application"
  142. END
  143.  
  144.  
  145. //
  146. // OWL string table
  147. //
  148.  
  149. // EditFile (include/owl/editfile.rc and include/owl/editsear.rc)
  150. //
  151. STRINGTABLE LOADONCALL MOVEABLE DISCARDABLE
  152. BEGIN
  153.   IDS_CANNOTFIND,       "Cannot find ""%s""."
  154.   IDS_UNTITLED,         "Document"
  155.   IDS_UNABLEREAD,       "Unable to read file %s from disk."
  156.   IDS_UNABLEWRITE,      "Unable to write file %s to disk."
  157.   IDS_FILECHANGED,      "The text in the %s file has changed.\n\nDo you want to save the changes?"
  158.   IDS_FILEFILTER,       "Text files|*.txt|AllFiles|*.*|"
  159. END
  160.  
  161.  
  162. // Printer (include/owl/printer.rc)
  163. //
  164. STRINGTABLE LOADONCALL MOVEABLE DISCARDABLE
  165. BEGIN
  166.   IDS_PRNON,            " on "
  167.   IDS_PRNERRORTEMPLATE, "'%s' not printed. %s."
  168.   IDS_PRNOUTOFMEMORY,   "Out of memory"
  169.   IDS_PRNOUTOFDISK,     "Out of disk space"
  170.   IDS_PRNCANCEL,        "Printing canceled"
  171.   IDS_PRNMGRABORT,      "Printing aborted in Print Manager"
  172.   IDS_PRNGENERROR,      "Error encountered during print"
  173.   IDS_PRNERRORCAPTION,  "Print Error"
  174. END
  175.  
  176.  
  177. // Exception string resources (include/owl/except.rc)
  178. //
  179. STRINGTABLE LOADONCALL MOVEABLE DISCARDABLE
  180. BEGIN
  181.   IDS_OWLEXCEPTION,     "ObjectWindows Exception"
  182.   IDS_UNHANDLEDXMSG,    "Unhandled Exception"
  183.   IDS_OKTORESUME,       "OK to resume?"
  184.   IDS_UNKNOWNEXCEPTION, "Unknown exception"
  185.  
  186.   IDS_UNKNOWNERROR,     "Unknown error"
  187.   IDS_NOAPP,            "No application object"
  188.   IDS_OUTOFMEMORY,      "Out of memory"
  189.   IDS_INVALIDMODULE,    "Invalid module specified for window"
  190.   IDS_INVALIDMAINWINDOW,"Invalid MainWindow"
  191.   IDS_VBXLIBRARYFAIL,   "VBX Library init failure"
  192.  
  193.   IDS_INVALIDWINDOW,    "Invalid window %s"
  194.   IDS_INVALIDCHILDWINDOW,"Invalid child window %s"
  195.   IDS_INVALIDCLIENTWINDOW,"Invalid client window %s"
  196.  
  197.   IDS_CLASSREGISTERFAIL,"Class registration fail for window %s"
  198.   IDS_CHILDREGISTERFAIL,"Child class registration fail for window %s"
  199.   IDS_WINDOWCREATEFAIL, "Create fail for window %s"
  200.   IDS_WINDOWEXECUTEFAIL,"Execute fail for window %s"
  201.   IDS_CHILDCREATEFAIL,  "Child create fail for window %s"
  202.  
  203.   IDS_MENUFAILURE,      "Menu creation failure"
  204.   IDS_VALIDATORSYNTAX,  "Validator syntax error"
  205.   IDS_PRINTERERROR,     "Printer error"
  206.  
  207.   IDS_LAYOUTINCOMPLETE, "Incomplete layout constraints specified in window %s"
  208.   IDS_LAYOUTBADRELWIN,  "Invalid relative window specified in layout constraint in window %s"
  209.  
  210.   IDS_GDIFAILURE,       "GDI failure"
  211.   IDS_GDIALLOCFAIL,     "GDI allocate failure"
  212.   IDS_GDICREATEFAIL,    "GDI creation failure"
  213.   IDS_GDIRESLOADFAIL,   "GDI resource load failure"
  214.   IDS_GDIFILEREADFAIL,  "GDI file read failure"
  215.   IDS_GDIDELETEFAIL,    "GDI object %X delete failure"
  216.   IDS_GDIDESTROYFAIL,   "GDI object %X destroy failure"
  217.   IDS_INVALIDDIBHANDLE, "Invalid DIB handle %X"
  218. END
  219.  
  220.  
  221. // General Window's status bar messages. (include/owl/statusba.rc)
  222. //
  223. STRINGTABLE
  224. BEGIN
  225.   IDS_MODES             "EXT|CAPS|NUM|SCRL|OVR|REC"
  226.   IDS_MODESOFF          "   |  |   |  |   |   "
  227.   SC_SIZE,              "Changes the size of the window"
  228.   SC_MOVE,              "Moves the window to another position"
  229.   SC_MINIMIZE,          "Reduces the window to an icon"
  230.   SC_MAXIMIZE,          "Enlarges the window to it maximum size"
  231.   SC_RESTORE,           "Restores the window to its previous size"
  232.   SC_CLOSE,             "Closes the window"
  233.   SC_TASKLIST,          "Opens task list"
  234.   SC_NEXTWINDOW,        "Switches to next window"
  235. END
  236.  
  237.  
  238. // Validator messages (include/owl/validate.rc)
  239. //
  240. STRINGTABLE LOADONCALL MOVEABLE DISCARDABLE
  241. BEGIN
  242.   IDS_VALPXPCONFORM     "Input does not conform to picture:\n""%s"""
  243.   IDS_VALINVALIDCHAR    "Invalid character in input"
  244.   IDS_VALNOTINRANGE     "Value is not in the range %ld to %ld."
  245.   IDS_VALNOTINLIST      "Input is not in valid-list"
  246. END
  247.  
  248.  
  249. //
  250. // Bitmaps used by the speedbar.  Each bitmap is associated with a
  251. // particular menu command.
  252. //
  253. CM_MDIFILENEW BITMAP "new.bmp"
  254. CM_MDIFILEOPEN BITMAP "open.bmp"
  255. CM_FILESAVE BITMAP "save.bmp"
  256.  
  257. CM_EDITUNDO BITMAP "undo.bmp"
  258. CM_EDITCUT BITMAP "cut.bmp"
  259. CM_EDITCOPY BITMAP "copy.bmp"
  260. CM_EDITPASTE BITMAP "paste.bmp"
  261.  
  262. CM_EDITFIND BITMAP "find.bmp"
  263. CM_EDITFINDNEXT BITMAP "findnext.bmp"
  264.  
  265. CM_FILEPRINTPREVIEW  BITMAP "preview.bmp"
  266.  
  267. CM_FILEPRINT BITMAP "print.bmp"
  268.  
  269.  
  270. //
  271. // Print Preview speed bar bitmaps
  272. //
  273. APX_PPR_PREVIOUS BITMAP "previous.bmp"
  274. APX_PPR_NEXT BITMAP "next.bmp"
  275. APX_PPR_ONEUP BITMAP "preview1.bmp"
  276. APX_PPR_TWOUP BITMAP "preview2.bmp"
  277. APX_PPR_DONE BITMAP "prexit.bmp"
  278.  
  279.  
  280. //
  281. // Misc application definitions
  282. //
  283.  
  284. // MDI document ICON
  285. //
  286. IDI_DOC ICON "mdichild.ico"
  287.  
  288. // Application ICON
  289. //
  290. IDI_MDIAPPLICATION ICON "applmdi.ico"
  291.  
  292.  
  293. // About box.
  294. //
  295. IDD_ABOUT DIALOG 12, 17, 204, 65
  296. STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
  297. CAPTION "About ApxMdi"
  298. FONT 8, "MS Sans Serif"
  299. BEGIN
  300.   CTEXT "Version", IDC_VERSION, 2, 14, 200, 8, SS_NOPREFIX
  301.   CTEXT "AppExpert MDI Example", -1, 2, 4, 200, 8, SS_NOPREFIX
  302.   CTEXT "", IDC_COPYRIGHT, 2, 27, 200, 17, SS_NOPREFIX
  303.   RTEXT "", IDC_DEBUG, 136, 55, 66, 8, SS_NOPREFIX
  304.   ICON IDI_MDIAPPLICATION, -1, 2, 2, 34, 34
  305.   DEFPUSHBUTTON "OK", IDOK, 82, 48, 40, 14
  306. END
  307.  
  308.  
  309. // Printer abort box.
  310. //
  311. IDD_ABORTDIALOG DIALOG 84, 51, 130, 60
  312. STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
  313. CAPTION "Printing"
  314. BEGIN
  315.   PUSHBUTTON "Cancel", IDCANCEL, 46, 40, 40, 14, WS_TABSTOP
  316.   CTEXT "Now printing Page %d of", ID_PAGE, 0, 8, 130, 8, SS_CENTER | NOT WS_VISIBLE | WS_GROUP
  317.   CTEXT "Now printing", -1, 0, 8, 130, 8,
  318.   CTEXT "'%s' on the", ID_TITLE, 0, 16, 130, 8
  319.   CTEXT "", ID_PORT, 0, 24, 130, 8, SS_CENTER | NOT WS_VISIBLE | WS_GROUP
  320.   CTEXT "%s on %s", ID_DEVICE, 0, 24, 130, 8
  321. END
  322.  
  323.  
  324. // TInputDialog class dialog box.
  325. //
  326. IDD_INPUTDIALOG DIALOG 20, 24, 180, 64
  327. STYLE WS_POPUP | WS_CAPTION | DS_SETFONT
  328. FONT 8, "Helv"
  329. BEGIN
  330.   LTEXT "", ID_PROMPT, 10, 8, 160, 10, SS_NOPREFIX
  331.   CONTROL "", ID_INPUT, "EDIT", WS_CHILD | WS_VISIBLE | WS_BORDER | WS_TABSTOP | ES_AUTOHSCROLL, 10, 20, 160, 12
  332.   DEFPUSHBUTTON "&OK", IDOK, 47, 42, 40, 14
  333.   PUSHBUTTON "&Cancel", IDCANCEL, 93, 42, 40, 14
  334. END
  335.  
  336. // Slider thumb bitmaps for TSlider and TVSlider (include/owl/slider.rc)
  337. //
  338. IDB_HSLIDERTHUMB BITMAP "hslider.bmp"
  339. IDB_VSLIDERTHUMB BITMAP "vslider.bmp"
  340.  
  341. // Version info.
  342. //
  343. #if !defined(__DEBUG_)
  344.  
  345. // Non-Debug VERSIONINFO
  346. //
  347. 1 VERSIONINFO LOADONCALL MOVEABLE
  348. FILEVERSION 1, 0, 0, 0
  349. PRODUCTVERSION 1, 0, 0, 0
  350. FILEFLAGSMASK 0
  351. FILEFLAGS VS_FFI_FILEFLAGSMASK
  352. #if defined(BI_PLAT_WIN32)
  353. FILEOS VOS__WINDOWS32
  354. #else
  355. FILEOS VOS__WINDOWS16
  356. #endif
  357. FILETYPE VFT_APP
  358. BEGIN
  359.   BLOCK "StringFileInfo"
  360.   BEGIN
  361.     // Language type = U.S. English(0x0409) and Character Set = Windows, Multilingual(0x04e4)
  362.     BLOCK "040904E4"              // Matches VarFileInfo Translation hex value.
  363.     BEGIN
  364.       VALUE "CompanyName", "Borland International\000"
  365.       VALUE "FileDescription", "ApxMdi for Windows\000"
  366.       VALUE "FileVersion", "1.0\000"
  367.       VALUE "InternalName", "ApxMdi\000"
  368.       VALUE "LegalCopyright", "Copyright ⌐ 1996. All Rights Reserved.\000"
  369.       VALUE "LegalTrademarks", "Windows(TM) is a trademark of Microsoft Corporation\000"
  370.       VALUE "OriginalFilename", "ApxMdi.exe\000"
  371.       VALUE "ProductName", "ApxMdi\000"
  372.       VALUE "ProductVersion", "1.0\000"
  373.     END
  374.   END
  375.  
  376.   BLOCK "VarFileInfo"
  377.   BEGIN
  378.     VALUE "Translation", 0x0409, 0x04e4    // U.S. English(0x0409) & Windows Multilingual(0x04e4) 1252
  379.   END
  380. END
  381.  
  382. #else
  383.  
  384. // Debug VERSIONINFO
  385. //
  386. 1 VERSIONINFO LOADONCALL MOVEABLE
  387. FILEVERSION 1, 0, 0, 0
  388. PRODUCTVERSION 1, 0, 0, 0
  389. FILEFLAGSMASK VS_FF_DEBUG | VS_FF_PRERELEASE | VS_FF_PATCHED | VS_FF_PRIVATEBUILD | VS_FF_SPECIALBUILD
  390. FILEFLAGS VS_FFI_FILEFLAGSMASK
  391. #if defined(BI_PLAT_WIN32)
  392. FILEOS VOS__WINDOWS32
  393. #else
  394. FILEOS VOS__WINDOWS16
  395. #endif
  396. FILETYPE VFT_APP
  397. BEGIN
  398.   BLOCK "StringFileInfo"
  399.   BEGIN
  400.     // Language type = U.S. English(0x0409) and Character Set = Windows, Multilingual(0x04e4)
  401.     BLOCK "040904E4"              // Matches VarFileInfo Translation hex value.
  402.     BEGIN
  403.       VALUE "CompanyName", "Borland International\000"
  404.       VALUE "FileDescription", "ApxMdi for Windows\000"
  405.       VALUE "FileVersion", "1.0\000"
  406.       VALUE "InternalName", "ApxMdi\000"
  407.       VALUE "LegalCopyright", "Copyright ⌐ 1996. All Rights Reserved.\000"
  408.       VALUE "LegalTrademarks", "Windows(TM) is a trademark of Microsoft Corporation\000"
  409.       VALUE "OriginalFilename", "ApxMdi.exe\000"
  410.       VALUE "ProductName", "ApxMdi\000"
  411.       VALUE "ProductVersion", "1.0\000"
  412.       VALUE "SpecialBuild", "Debug Version\000"
  413.       VALUE "PrivateBuild", "Built by \000"
  414.     END
  415.   END
  416.  
  417.   BLOCK "VarFileInfo"
  418.   BEGIN
  419.     VALUE "Translation", 0x0409, 0x04e4    // U.S. English(0x0409) & Windows Multilingual(0x04e4) 1252
  420.   END
  421. END
  422.  
  423. #endif
  424.